package com.bindapp.widget;

import android.content.Context;
import android.widget.ImageView;

import com.bindapp.widget.roundview.RoundedImageView;
import com.youth.banner.loader.ImageLoaderInterface;

/**
 * Created by apple on 2018/7/20.
 */

public abstract class RoundImageLoader implements ImageLoaderInterface<RoundedImageView> {

    @Override
    public RoundedImageView createImageView(Context context) {
        RoundedImageView imageView = new RoundedImageView(context);
        imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
        imageView.setCornerRadius(20);
        imageView.setOval(false);
        return imageView;
    }

}